package com.cz.zslu.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author 森森
 * @since 2018-10-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("zsl_car")
public class ZslCar extends SuperEntity<ZslCar> {

    private static final long serialVersionUID = 1L;

    /**
     * 买家id
     */
    @ApiModelProperty("买家id")
    @TableField("user_id")
    private Long userId;
    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    @TableField("commodity_id")
    private Long commodityId;
    /**
     * 卖家id
     */
    @ApiModelProperty("卖家id")
    @TableField("seller_user_id")
    private Long sellerUserId;
    /**
     * 商品数量
     */
    @ApiModelProperty("商品数量")
    private Integer count;
    /**
     * 商品名称
     */
    @ApiModelProperty("商品名称")
    @TableField(exist = false)
    private String name;
    /**
     * 商品价格
     */
    @ApiModelProperty("商品价格")
    @TableField(exist = false)
    private BigDecimal price;

    /**
     * 店铺名称
     */
    @ApiModelProperty("店铺名称")
    @TableField(exist = false)
    private String storeName;

    /**
     * 店铺类型
     */
    @TableField(exist = false)
    @ApiModelProperty("类型 1个人商铺 2商家商铺")
    private Integer type;

    /**
     * 商品图片
     */
    @ApiModelProperty("商品图片")
    @TableField(exist = false)
    private String picUrl;

}
